﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Hotel.Domain;
namespace HOTEL.Dao
{
    public class PagesDao: BaseDAO
    {
        public List<PAGE> Getlist()
        {
            return _db.PAGEs.ToList();
        }
        public List<PAGE> Search(string key)
        {
            return _db.PAGEs.Where(p => p.Name.ToUpper().Contains(key.ToUpper())).ToList();
        }
    }
}
